package com.stick.order.controller;

import com.stick.order.config.GirlConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GirlController {

	@Autowired
	private GirlConfig girlConfig;

	@GetMapping("/girl/print")
	public String print(){
		return "name: " + girlConfig.getName() + "，age: " + girlConfig.getAge();
	}
}
